import request from "../../../request.js"
function order(data){
	return request({
		url:"/lejuClient/order/addPreOrder",
		data,
		method:"post"
	})
}
function getOrderId(id,data){
	return request({
		url:`/lejuClient/order/getPreOrderById/${id}`,
		data,
		
	})
}
function confirm(data){
	return request({
		url:"/lejuClient/order/addConfirmOrder",
		data,
		method:'post'
	})
}
function payConfirm(data){
	return request({
		url:"/lejuClient/order/payConfirm",
		data,
		method:'post'
	})
}
function findAllOrders(data){
	return request({
		url:'/lejuClient/order/findAllOrders',
		data
	})
}
function cancel(orderId,data){
	return request({
		url:`/lejuClient/order/cancelOrder/${orderId}`,
		data,
		method:'post'
	})
}
function receiveDone(data){
	return request({
		url:`/lejuClient/order/receiveDone`,
		data,
		method:'post'
	})
}
function getCompanyAddrss(data){
	return request({
		url:"/lejuClient/orderReturn/getCompanyAddrss",
		data,
	})
}
function addOrderReturnApply(data){
	return request({
		url:"/lejuClient/orderReturn/addOrderReturnApply",
		data,
		method:'post'
	})
}
function orderReturnApplys(data){
	return request({
		url:"/lejuClient/orderReturn/orderReturnApplys",
		data,
	})
}
export{
	order,
	getOrderId,
	confirm,payConfirm,
	findAllOrders,
	cancel,
	receiveDone,
	getCompanyAddrss,
	addOrderReturnApply,
	orderReturnApplys
}